﻿@model MvcSimplyCleverPart3.Models.AddressViewModel
<div>
    <div class="row">
        <div class="label">@Html.LabelFor(m => m.Line1)</div>
        <div class="input">
            @Html.TextBoxFor(m => m.Line1)
            @Html.TextBoxFor(m => m.Line2)
            @Html.ValidationMessageFor(m => m.Line1)
        </div>
    </div>
    
    <div class="row">
        <div class="label">@Html.LabelFor(m => m.City)</div>
        <div class="input">
            @Html.TextBoxFor(m => m.City)
            @Html.ValidationMessageFor(m => m.City)
        </div>
    </div>
    <div class="row">
        <div class="label">@Html.LabelFor(m => m.County)</div>
        <div class="input">
            @Html.TextBoxFor(m => m.County)
            @Html.ValidationMessageFor(m => m.County)
        </div>
    </div>
      <div class="row">
        <div class="label">@Html.LabelFor(m => m.StateCode)</div>
        <div class="input">
            @Html.DropDownListFor(m => m.StateCode, ViewHelper.GetStates(Model.CountryCode, Model.StateCode))
        </div>
    </div>
     <div class="row">
        <div class="label">@Html.LabelFor(m => m.ZipCode)</div>
        <div class="input">
            @Html.TextBoxFor(m => m.ZipCode)
            @Html.ValidationMessageFor(m => m.ZipCode)
        </div>
    </div>
</div>

